package com.example.mainapp;

import com.example.mapper.ContainerMapper;
import com.example.mapper.UserMapper;
import com.example.mapper.entity.User;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

@SpringBootTest
public class Demo1 {

    @Autowired
    private UserMapper userMapper;

    @Autowired
    private ContainerMapper containerMapper;

    @Test
    public void t1(){
        System.out.println(userMapper.selectList(null));
    }

    @Test
    public void t2(){
        System.out.println("t2");
        System.out.println(containerMapper.getUserMapper().selectList(null));
    }

    @Test
    public void t3(){
        System.out.println("t3");
        List<User> userList=userMapper.selectByUsernameLike("a");
        System.out.println(userList);
    }
}
